let expect = require('chai').expect;
const models = require('../models');
const User = models.User;
describe('sequelize', function () {

  it('User', function (done) {
    User.findOne({uid: 'ksjyp'}).then(function (user) {
      console.log('查找 ksjyp ', JSON.stringify(user));
      expect(user).to.be.a('object');
      done();
    }).catch(done);
  });
  it('FriendShip', function (done) {
    models.Friendship.findOne({userId: 1}).then(function (user) {
      console.log('查找 ksjyp ', JSON.stringify(user));
      expect(user).to.be.a('object');
      done();
    }).catch(done);
  });
});
